<template>
<view>
<view v-for="(item, index) in list" :key="index" class="modle" v-if="list.length>0">
    <image class="modle_img" :src="item.head_image"></image>
    <view class="modle_title">{{item.nickname}}</view>
    <view class="modle_time">推广时间：{{item.create_time}}</view>
    <navigator class="choose_view" :url="'/pages/store/index?uid=' + item.uid">
        <view class="modle_btn" :data-id="item.uid">店铺</view>
    </navigator>
</view>
<block v-if="list.length<=0">
    <!--<import src="/pages/data_null/index.wxml"></import>-->
    <view>
        <block data-type="template" data-is="title" data-attr="title:'暂无查看数据'">
    <view class="zanwushuju_border">
        <image class="zanwushuju_border_img" src="/static/pages/image/none_message.png"></image>
        <view class="zanwushuju_border_title">{{'暂无收藏数据'}}</view>
    </view>
</block>
    </view>
</block>
</view>
</template>

<script>
var app = getApp();

export default {
  data() {
    return {
      page: 1,
      is_last: !1,
      list: []
    };
  },

  components: {},
  props: {},
  onLoad: function (a) {
    var t = this;
    wx.setNavigationBarTitle({
      title: "推广记录"
    }), app.globalData.util.request({
      url: "entry/wxapp/Api",
      data: {
        m: "monai_market",
        r: "store.fans",
        uid: wx.getStorageSync("uid")
      },
      success: function (a) {
        a.data.data && t.setData({
          list: a.data.data
        });
      }
    });
  },
  onReachBottom: function () {
    var e = this;
    e.is_last || app.globalData.util.request({
      url: "entry/wxapp/Api",
      data: {
        m: "monai_market",
        r: "store.fans",
        uid: wx.getStorageSync("uid"),
        page: e.page + 1
      },
      success: function (a) {
        a.data.data || (e.setData({
          is_last: !0
        }), wx.showToast({
          title: "没有更多数据了",
          icon: "success",
          duration: 2e3
        }));

        for (var t = e.list, s = 0; s < a.data.data.length; s++) t.push(a.data.data[s]);

        e.setData({
          list: t,
          page: e.page + 1
        });
      }
    });
  },
  methods: {}
};
</script>
<style>
@import "./fensi.css";
</style>